package cn.com.okgo.utils;

import java.io.IOException;

/**
 * Created by zhy on 15/12/14.
 */
public class Exceptions {

    public static void illegalArgument(String msg, Object... params) {
        throw new IllegalArgumentException(String.format(msg, params));
    }

    public static IOException ioException(String msg, Object... params){
        return new IOException(String.format(msg, params));
    }

}
